//
//  ListModel.m
//  艾听歌
//
//  Created by dllo on 16/5/22.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "ListModel.h"

@implementation ListModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}


- (void)setSongs:(NSMutableArray *)songs{
    
    _songs = songs;
    
    NSMutableArray *array = [NSMutableArray array];
    for (NSDictionary *dic in songs) {
        SongsModel *model = [[SongsModel alloc]init];
        
        [model setValuesForKeysWithDictionary:dic];
        
        [array addObject:model];
        
    }
    
    _songs = [NSMutableArray arrayWithArray:array];
    
}






@end
